package 面试.遍历算法.String类型题目;

public class 拆分 {
    public static void main(String[] args) {
        String str = "12-13-14";
        String[] split = str.split("-");
        System.out.println(split.length);
    }
}
